const a = 7000 / 60
console.log(a);
console.log((a.toFixed(4) * 0.01).toFixed(2));
console.log((a * 0.01).toFixed(2));

console.log(Date.toString());
console.log(new Date().toString());
console.log('toDateString', new Date().toDateString());
console.log(new Date().toLocaleDateString());
console.log(new Date().toLocaleTimeString());
console.log(new Date().toLocaleString())

const s1 = "2023-08-25 23:59:59"
const s2 = "2023-07-02 20:22:38"
const time = new Date(s1) - new Date(s2)
console.log(parseInt(time / 60 / 60 / 24 / 1000));
console.log(parseInt(((new Date(s2) - new Date()) / 60 / 60 / 24 / 1000)));

const sleep = (delay) => new Promise((resolve) => setTimeout(resolve, delay))

const repeatedGreetings = async () => {
    await sleep(1000)
    console.log(1)
    await sleep(1000)
    console.log(2)
    await sleep(1000)
    console.log(3)
  }
  repeatedGreetings()
// for (let i = 0; i <= 3; i++) {
   
//     setTimeout(() => console.log(`#${i}`), 1000)
//     // 应该没用，但确实有用
//   }